package com.punch.oauth.vo;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.io.Serializable;

/**
 * LoginUserVO-登录用户信息
 *
 * @author wujj
 * @version 1.0.0
 * @since 2020/7/30 15:35
 */
@Data
public class LoginUserVO implements Serializable {

    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String userName;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Integer roleId;

    @JsonSerialize(using = ToStringSerializer.class)
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Integer areaId;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String headImgUrl;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String areaName;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String authorizationToken;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Integer auditStatus;
}
